package com.woniu.common.entity;

import java.io.Serializable;

/**
 * tb_hardware_logs
 * @author 
 */
public class TbHardwareLogs implements Serializable {
    private Integer id;

    /**
     * 硬件提交的str
     */
    private String str;

    /**
     * 提交时间
     */
    private String date;

    /**
     * mac地址
     */
    private String mac;

    /**
     * 信号强度
     */
    private String signalLevel;

    /**
     * 电池电量
     */
    private String batteryLevel;

    /**
     * 开锁电压
     */
    private String baatteryLevelOpen;

    /**
     * 状态
     */
    private String status;

    /**
     * 订单
     */
    private String orderNumber;

    /**
     * 控制
     */
    private String control;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getSignalLevel() {
        return signalLevel;
    }

    public void setSignalLevel(String signalLevel) {
        this.signalLevel = signalLevel;
    }

    public String getBatteryLevel() {
        return batteryLevel;
    }

    public void setBatteryLevel(String batteryLevel) {
        this.batteryLevel = batteryLevel;
    }

    public String getBaatteryLevelOpen() {
        return baatteryLevelOpen;
    }

    public void setBaatteryLevelOpen(String baatteryLevelOpen) {
        this.baatteryLevelOpen = baatteryLevelOpen;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getControl() {
        return control;
    }

    public void setControl(String control) {
        this.control = control;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbHardwareLogs other = (TbHardwareLogs) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStr() == null ? other.getStr() == null : this.getStr().equals(other.getStr()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getMac() == null ? other.getMac() == null : this.getMac().equals(other.getMac()))
            && (this.getSignalLevel() == null ? other.getSignalLevel() == null : this.getSignalLevel().equals(other.getSignalLevel()))
            && (this.getBatteryLevel() == null ? other.getBatteryLevel() == null : this.getBatteryLevel().equals(other.getBatteryLevel()))
            && (this.getBaatteryLevelOpen() == null ? other.getBaatteryLevelOpen() == null : this.getBaatteryLevelOpen().equals(other.getBaatteryLevelOpen()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getOrderNumber() == null ? other.getOrderNumber() == null : this.getOrderNumber().equals(other.getOrderNumber()))
            && (this.getControl() == null ? other.getControl() == null : this.getControl().equals(other.getControl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStr() == null) ? 0 : getStr().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getMac() == null) ? 0 : getMac().hashCode());
        result = prime * result + ((getSignalLevel() == null) ? 0 : getSignalLevel().hashCode());
        result = prime * result + ((getBatteryLevel() == null) ? 0 : getBatteryLevel().hashCode());
        result = prime * result + ((getBaatteryLevelOpen() == null) ? 0 : getBaatteryLevelOpen().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getOrderNumber() == null) ? 0 : getOrderNumber().hashCode());
        result = prime * result + ((getControl() == null) ? 0 : getControl().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", str=").append(str);
        sb.append(", date=").append(date);
        sb.append(", mac=").append(mac);
        sb.append(", signalLevel=").append(signalLevel);
        sb.append(", batteryLevel=").append(batteryLevel);
        sb.append(", baatteryLevelOpen=").append(baatteryLevelOpen);
        sb.append(", status=").append(status);
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", control=").append(control);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}